<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>简介</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.mime-magic.html">Mimetype</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mime-magic.setup.html">安装／配置</a></div>
 <div class="up"><a href="book.mime-magic.html">Mimetype</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intro.mime-magic" class="preface">
  <h1 class="title">简介</h1>
  <div class="warning"><strong class="warning">Warning</strong>
   <p class="para">
    This extension has been deprecated as the PECL extension
    <a href="book.fileinfo.html" class="link">Fileinfo</a>
    provides the same functionality (and more) in a much cleaner way.
   </p>
  </div>
  <p class="para">
   The functions in this module try to guess the content type
   and encoding of a file by looking for certain 
   <em class="emphasis">magic</em> byte sequences at specific
   positions within the file. While this is not a bullet proof
   approach the heuristics used do a very good job.
  </p>
  <p class="para">
   This extension is derived from Apache mod_mime_magic, 
   which is itself based on the <var class="filename">file</var> 
   command maintained by Ian F. Darwin. See the source code for
   further historic and copyright information.
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.mime-magic.html">Mimetype</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mime-magic.setup.html">安装／配置</a></div>
 <div class="up"><a href="book.mime-magic.html">Mimetype</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
